package top.misspro.valheimadminsocket.message.command;

import lombok.extern.slf4j.Slf4j;
import top.misspro.valheimadminsocket.message.TextMessage;

/**
 * @author Evan
 */
@Slf4j
public class Install extends TextMessage {
    /**
     * 安装命令
     */
    private static final String COMMAND = "";

    private ServerInfo serverInfo;

    public String command() {
        return COMMAND;
    }

    /*public Install() {
        ObjectMapper mapper = new ObjectMapper();
        try {
            ServerInfo reader = mapper.readValue(this.getText(), ServerInfo.class);
            this.serverInfo = reader;
        } catch (JsonProcessingException e) {
            log.error("信息解码错误！");
        }
    }*/

    public Install(ServerInfo serverInfo) {
        this.serverInfo = serverInfo;
    }

    public ServerInfo getServerInfo() {
        return serverInfo;
    }
}
